﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace RBAC.MaHaiBo.Repository.Migrations
{
    public partial class 请假 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Leave",
                columns: table => new
                {
                    Lid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    department = table.Column<int>(type: "int", nullable: false),
                    KAddtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    JAddtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    GZTime = table.Column<int>(type: "int", nullable: false),
                    BdTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    LSdata = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    BTName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LSdate = table.Column<int>(type: "int", nullable: false),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Leave", x => x.Lid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Leave");
        }
    }
}
